package com.zj.core.ui

import android.content.Context
import android.graphics.Color
import android.view.Gravity
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import com.zj.core.R
import org.jetbrains.anko.*
import org.jetbrains.anko.constraint.layout.constraintLayout

class NotificationUi(groupView: LinearLayout) : AnkoComponent<Context> {
    private var view: LinearLayout = groupView
    lateinit var details_input_tv: TextView

    override fun createView(ui: AnkoContext<Context>): View = with(view) {
        constraintLayout {
            lparams(width= matchParent,height= matchParent)
            backgroundColor=Color.WHITE

            scrollView {
                lparams(width= matchParent,height= matchParent)

                details_input_tv=textView{
                    id=R.id.details_input_tv
                    gravity=Gravity.START
                    textSize=dip(12).toFloat()
                }.lparams(width= matchParent,height=matchParent){
                    margin=dip(8)
                }
            }
        }
    }
}